package com.easychat.controller;

import com.easychat.entity.Emp;
import org.springframework.boot.autoconfigure.condition.ConditionalOnResource;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author kyle.li
 * @version 1.0
 * @description: TODO
 * @date 2024/7/10 19:54
 */
@RestController
@CrossOrigin
public class HelloController {
    @RequestMapping("/post")
    public Emp hello(){
        System.out.println("axios************");
        Emp emp = new Emp();
        emp.setId(0);
        emp.setName("张三");
        emp.setSex(0);
        emp.setAddress("山西忻州");
        return emp;
    }
}
